using UnityEngine;
using System.Collections;

public class BaseEffect : MonoBehaviour
{
	private float m_fCurrentTime  = 0.0f;

		void Update ()
		{
			m_fCurrentTime += Time.deltaTime;
            if (m_fCurrentTime >= GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).length)
						Destroy (gameObject);
			
		}
}

